package com.bosch.in.rtp1.ept.action.form;

import java.util.List;

import org.apache.struts.action.ActionForm;

import com.bosch.in.rtp1.ept.constant.CommonConstants;
import com.bosch.in.rtp1.ept.model.dto.SelectingInt;
import com.bosch.in.rtp1.ept.util.FormUtility;

/**
 * Class is used to store parameters which are search conditions to display fx factor
 * @author LIV1HC
 *
 */

public class FXFactorCriteriaForm extends ActionForm{
	
	private static final long serialVersionUID = 1L;
	
	private List<SelectingInt> years;
	
	private List<SelectingInt> prodAreas;
	
	private List<SelectingInt> priorities;
	
	private int selectedYear;
	
	private int selectedProdArea;
	
	private int selectedPriority;

	public FXFactorCriteriaForm()
	{
		this.selectedYear = CommonConstants.CURRENT_YEAR;
	}
	
	public int getSelectedYear() {
		return selectedYear;
	}

	public void setSelectedYear(int selectedYear) {
		this.selectedYear = selectedYear;
	}
	
	public List<SelectingInt> getProdAreas() {
		if (this.prodAreas == null)
		{
			this.prodAreas = FormUtility.buildListProdArea();
		}
		return prodAreas;
	}

	public void setProdAreas(List<SelectingInt> prodAreas) {
		this.prodAreas = prodAreas;
	}

	public List<SelectingInt> getPriorities() {
		if (this.priorities == null)
		{
			this.priorities = FormUtility.buildListPriority();
		}
		return priorities;
	}

	public void setPriorities(List<SelectingInt> priorities) {
		this.priorities = priorities;
	}

	public int getSelectedYears() {
		return selectedYear;
	}

	public void setSelectedYears(int selectedYears) {
		this.selectedYear = selectedYears;
	}

	public int getSelectedProdArea() {
		return selectedProdArea;
	}

	public void setSelectedProdArea(int selectedProdArea) {
		this.selectedProdArea = selectedProdArea;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public List<SelectingInt> getYears() {
		if (this.years == null)
		{
			this.years = FormUtility.buildListYears();
		}
		return years;
	}

	public void setYears(List<SelectingInt> years) {
		this.years = years;
	}
	
	public void setSelectedPriority(int selectedPriority) {
		this.selectedPriority = selectedPriority;
	}

	public int getSelectedPriority() {
		return selectedPriority;
	}
}
